#include <iostream>
#include <sstream>

using namespace std;

int main() {
    string data = "10 20.5";
    // 简化了字符串和基本数据类型之间的转换。
    istringstream iss(data);

    int i;
    double d;

    iss >> i >> d;

    cout << "Integer: " << i << endl;
    cout << "Double: " << d << endl;

    return 0;
}